
package com.be.beadmin.basicData.repository;

import com.be.beadmin.basicData.entity.Workstation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author chenwei
* @date 2023-02-25
**/
public interface WorkstationRepository extends JpaRepository<Workstation, String>, JpaSpecificationExecutor<Workstation> {

    Workstation findWorkstationByIdAndDelete(String id, Integer delete);

    List<Workstation> findWorkstationByWorkstationCodeAndDelete(String code, Integer delete);

    Workstation findWorkstationById(String id);

}